Skip to content

fix(profile): extract generated qryptchat IDs from URLs#106

Open
rissrice2105-agent wants to merge 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/extract-qryptchat-profile-ids
Open

fix(profile): extract generated qryptchat IDs from URLs#106
rissrice2105-agent wants to merge 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/extract-qryptchat-profile-ids

Conversation

@rissrice2105-agent

Copy link
Copy Markdown

Summary

  • fixes extractIdentifierFromUrl() so generated /id/qryptchat... profile links round-trip correctly
  • preserves the lowercase qryptchat prefix during validation by normalizing through parseUniqueIdentifier()
  • supports trailing slash, query string, and hash delimiters on profile URLs
  • adds focused coverage in tests/unique-identifier-utils.test.js

Fixes #105.

Validation

  • corepack pnpm exec mocha tests/unique-identifier-utils.test.js - 19 passing
  • direct Node round-trip check for generateShareableProfileUrl() + extractIdentifierFromUrl()

Build note

  • corepack pnpm build compiles successfully, then fails on existing environment/config issues: ESLint cannot resolve globals from eslint.config.js, and Next page-data collection requires supabaseUrl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Profile ID URL extraction rejects generated qryptchat IDs

1 participant